/*
 * DbmsClientAboutBox.java
 */

package dbmsclient;

import application.Action;
import application.Application;
import application.ResourceMap;
import java.util.ResourceBundle;
import javax.swing.JButton;


public class DbmsClientAboutBox extends javax.swing.JDialog {

    public DbmsClientAboutBox(java.awt.Frame parent) {
        super(parent);
        initComponents();
        getRootPane().setDefaultButton(closeButton);
    }
    
   
    
    @Action public void closeAboutBox() {
        setVisible(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents

        closeButton = new javax.swing.JButton();
        javax.swing.JLabel appVersionLabel = new javax.swing.JLabel();
        javax.swing.JLabel imageLabel = new javax.swing.JLabel();
        javax.swing.JLabel appVendorLabel1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("title")); // NOI18N
        setBackground(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getColor("background")); // NOI18N
        setMinimumSize(new java.awt.Dimension(400, 180));
        setName("aboutBox"); // NOI18N
        setResizable(false);

        closeButton.setAction(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getActionMap(DbmsClientAboutBox.class, this).get("closeAboutBox"));

        appVersionLabel.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("Application.version")); // NOI18N

        imageLabel.setIcon(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getIcon("imageLabel.icon")); // NOI18N

        appVendorLabel1.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("appVendorLabel1.text")); // NOI18N

        jLabel1.setFont(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel1.text")); // NOI18N

        jLabel2.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel2.text")); // NOI18N

        jLabel3.setFont(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getFont("jLabel3.font")); // NOI18N
        jLabel3.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel3.text")); // NOI18N

        jLabel4.setFont(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getFont("jLabel4.font")); // NOI18N
        jLabel4.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel4.text")); // NOI18N

        jLabel5.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel5.text")); // NOI18N

        jLabel6.setFont(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getFont("jLabel6.font")); // NOI18N
        jLabel6.setText(application.Application.getInstance(dbmsclient.DbmsClientApp.class).getContext().getResourceMap(DbmsClientAboutBox.class).getString("jLabel6.text")); // NOI18N

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(imageLabel)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(layout.createSequentialGroup()
                        .add(28, 28, 28)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout.createSequentialGroup()
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jLabel6)
                                .add(18, 18, 18)
                                .add(appVendorLabel1))
                            .add(layout.createSequentialGroup()
                                .add(jLabel4)
                                .add(18, 18, 18)
                                .add(jLabel5))
                            .add(layout.createSequentialGroup()
                                .add(jLabel3)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(appVersionLabel))
                            .add(jLabel1)
                            .add(jLabel2))
                        .addContainerGap(106, Short.MAX_VALUE))
                    .add(layout.createSequentialGroup()
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(closeButton)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(imageLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, Short.MAX_VALUE)
            .add(layout.createSequentialGroup()
                .add(16, 16, 16)
                .add(jLabel1)
                .add(6, 6, 6)
                .add(jLabel2)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(appVersionLabel))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel4)
                    .add(jLabel5))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(appVendorLabel1)
                    .add(jLabel6))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 51, Short.MAX_VALUE)
                .add(closeButton)
                .addContainerGap())
        );

        pack();
    }//GEN-END:initComponents
    public void reloadComponents(ResourceBundle bundle) {
        jLabel1.setText(bundle.getString("dbmsClientTitle"));
        jLabel2.setText(bundle.getString("dbmsClient"));
        jLabel3.setText(bundle.getString("productVersion"));
        jLabel4.setText(bundle.getString("vendors"));
        jLabel5.setText(bundle.getString("vendorsList"));
        jLabel6.setText(bundle.getString("webSite"));
        closeButton.setText(bundle.getString("close"));
        this.setTitle(bundle.getString("about"));
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton closeButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    // End of variables declaration//GEN-END:variables
    
}
